package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.jy.adscm.core.interceptor.DateJsonDeserializer;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 图纸修订记录
 * </p>
 *
 * @author zyl
 * @since 2018-10-26
 */
public class JyDrawingEditInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long drawingId;
    private String modifyContent;
    private Integer modifier;

    @TableField(exist = false)
    private String modifierName;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
    private String modifyReason;
    private Integer approvalPerson;
    @TableField(exist = false)
    private String approvalPersonName;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;
    private Integer approvalResult;
    private String approvalRemark;
    private String modifiedDrawingPath;
//    private String modifiedInstructionsPath;

    private String drawingRemark;
    private String technicsRemark;//工艺说明
    private String drawingPrice;
    private String drawingName;
    private String drawingCode;
    private String drawingVersion;

    @TableField("relevant_dept")
    private String relevantDept;//相关部门
    private String drawingIsPublish;//图纸是否发布
    @TableField("drawing_need_train")
    private String drawingNeedTrain;//图纸是否需要培训
    private Integer drawingPublisher;//图纸发布人
    @TableField(exist = false)
    private String  drawingPublisher_name;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date drawingPublishTime;//发布时间


    @TableField(exist = false)
    private List<JyDrawingAnnex> annexes;//附件

    @TableField(exist = false)
    private List<JyDrawingAuditing> auditings;//审核结果

    public List<JyDrawingAuditing> getAuditings() {
        return auditings;
    }

    public void setAuditings(List<JyDrawingAuditing> auditings) {
        this.auditings = auditings;
    }

    public List<JyDrawingAnnex> getAnnexes() {
        return annexes;
    }

    public void setAnnexes(List<JyDrawingAnnex> annexes) {
        this.annexes = annexes;
    }

    public String getRelevantDept() {
        return relevantDept;
    }

    public void setRelevantDept(String relevantDept) {
        this.relevantDept = relevantDept;
    }

    public String getDrawingIsPublish() {
        return drawingIsPublish;
    }

    public void setDrawingIsPublish(String drawingIsPublish) {
        this.drawingIsPublish = drawingIsPublish;
    }

    public String getDrawingNeedTrain() {
        return drawingNeedTrain;
    }

    public void setDrawingNeedTrain(String drawingNeedTrain) {
        this.drawingNeedTrain = drawingNeedTrain;
    }

    public Integer getDrawingPublisher() {
        return drawingPublisher;
    }

    public void setDrawingPublisher(Integer drawingPublisher) {
        this.drawingPublisher = drawingPublisher;
    }

    public String getDrawingPublisher_name() {
        return drawingPublisher_name;
    }

    public void setDrawingPublisher_name(String drawingPublisher_name) {
        this.drawingPublisher_name = drawingPublisher_name;
    }

    public Date getDrawingPublishTime() {
        return drawingPublishTime;
    }
    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setDrawingPublishTime(Date drawingPublishTime) {
        this.drawingPublishTime = drawingPublishTime;
    }

    public String getApprovalPersonName() {
        return approvalPersonName;
    }

    public void setApprovalPersonName(String approvalPersonName) {
        this.approvalPersonName = approvalPersonName;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDrawingId() {
        return drawingId;
    }

    public void setDrawingId(Long drawingId) {
        this.drawingId = drawingId;
    }

    public String getModifyContent() {
        return modifyContent;
    }

    public void setModifyContent(String modifyContent) {
        this.modifyContent = modifyContent;
    }

    public Integer getModifier() {
        return modifier;
    }

    public void setModifier(Integer modifier) {
        this.modifier = modifier;
    }

    public Date getModifyTime() {
        return modifyTime;
    }
    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyReason() {
        return modifyReason;
    }

    public void setModifyReason(String modifyReason) {
        this.modifyReason = modifyReason;
    }

    public Integer getApprovalPerson() {
        return approvalPerson;
    }

    public void setApprovalPerson(Integer approvalPerson) {
        this.approvalPerson = approvalPerson;
    }

    public Date getApprovalTime() {
        return approvalTime;
    }
    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }

    public Integer getApprovalResult() {
        return approvalResult;
    }

    public void setApprovalResult(Integer approvalResult) {
        this.approvalResult = approvalResult;
    }

    public String getApprovalRemark() {
        return approvalRemark;
    }

    public void setApprovalRemark(String approvalRemark) {
        this.approvalRemark = approvalRemark;
    }

    public String getModifiedDrawingPath() {
        return modifiedDrawingPath;
    }

    public void setModifiedDrawingPath(String modifiedDrawingPath) {
        this.modifiedDrawingPath = modifiedDrawingPath;
    }

//    public String getModifiedInstructionsPath() {
//        return modifiedInstructionsPath;
//    }
//
//    public void setModifiedInstructionsPath(String modifiedInstructionsPath) {
//        this.modifiedInstructionsPath = modifiedInstructionsPath;
//    }

    public String getDrawingRemark() {
        return drawingRemark;
    }

    public void setDrawingRemark(String drawingRemark) {
        this.drawingRemark = drawingRemark;
    }

    public String getTechnicsRemark() {
        return technicsRemark;
    }

    public void setTechnicsRemark(String technicsRemark) {
        this.technicsRemark = technicsRemark;
    }

    public String getDrawingPrice() {
        return drawingPrice;
    }

    public void setDrawingPrice(String drawingPrice) {
        this.drawingPrice = drawingPrice;
    }

    public String getDrawingName() {
        return drawingName;
    }

    public void setDrawingName(String drawingName) {
        this.drawingName = drawingName;
    }

    public String getDrawingCode() {
        return drawingCode;
    }

    public void setDrawingCode(String drawingCode) {
        this.drawingCode = drawingCode;
    }

    public String getDrawingVersion() {
        return drawingVersion;
    }

    public void setDrawingVersion(String drawingVersion) {
        this.drawingVersion = drawingVersion;
    }

    @Override
    public String toString() {
        return "JyDrawingEditInfo{" +
                "id=" + id +
                ", drawingId=" + drawingId +
                ", modifyContent='" + modifyContent + '\'' +
                ", modifier=" + modifier +
                ", modifierName='" + modifierName + '\'' +
                ", modifyTime=" + modifyTime +
                ", modifyReason='" + modifyReason + '\'' +
                ", approvalPerson=" + approvalPerson +
                ", approvalPersonName='" + approvalPersonName + '\'' +
                ", approvalTime=" + approvalTime +
                ", approvalResult=" + approvalResult +
                ", approvalRemark='" + approvalRemark + '\'' +
                ", modifiedDrawingPath='" + modifiedDrawingPath + '\'' +
                ", drawingRemark='" + drawingRemark + '\'' +
                ", technicsRemark='" + technicsRemark + '\'' +
                ", drawingPrice='" + drawingPrice + '\'' +
                ", drawingName='" + drawingName + '\'' +
                ", drawingCode='" + drawingCode + '\'' +
                ", drawingVersion='" + drawingVersion + '\'' +
                ", drawingIsPublish='" + drawingIsPublish + '\'' +
                ", drawingNeedTrain='" + drawingNeedTrain + '\'' +
                ", drawingPublisher=" + drawingPublisher +
                ", drawingPublisher_name='" + drawingPublisher_name + '\'' +
                ", drawingPublishTime=" + drawingPublishTime +
                '}';
    }
}
